package GetTopic;
import java.io.*;
import java.io.FileReader;

public class BufferedInputFile {
	public static String read(String filename) throws Exception{
		java.io.BufferedReader in = new BufferedReader(new FileReader(filename));
		String s;
		StringBuilder sb = new StringBuilder();
		while((s = in.readLine())!= null)
			sb.append(s+"\n");
		in.close();
		return sb.toString();
	}
	public static void main(String[] args) throws Exception{
		System.out.println(read("BufferedinputFile.java"));
	}
}
